/*
*编写程序把int型vector复制给int型数组
*/
#include <iostream>
#include <vector>
using namespace std;

int main()
{
	const int isize = 5;
	vector<int> ivec(isize,9);
	int iAry[isize];

	for(vector<int>::size_type st = 0; st != ivec.size();st++)
	{
		iAry[st] = ivec[st];
	}

	for(int *pBegin = iAry,*pEnd = iAry + isize;pBegin < pEnd;pBegin++)
	{
		cout << *pBegin << "  ";
	}

	cout << endl;
	system("pause");
	return 0;
}


